package com.kamm.springbootflower.service;

import com.kamm.springbootflower.dao.FlowerTbMapper;
import com.kamm.springbootflower.domain.FlowerTb;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FlowerTbServiceimpl implements FlowerTbService {

    @Resource
    FlowerTbMapper flowerTbMapper;
    @Override
    public int deleteByPrimaryKey(Integer ftbId) {
        return flowerTbMapper.deleteByPrimaryKey(ftbId);
    }

    @Override
    public int insert(FlowerTb record) {
        return flowerTbMapper.insert(record);
    }

    @Override
    public int insertSelective(FlowerTb record) {
        return flowerTbMapper.insertSelective(record);
    }

    @Override
    public FlowerTb selectByPrimaryKey(Integer ftbId) {
        return flowerTbMapper.selectByPrimaryKey(ftbId);
    }

    @Override
    public int updateByPrimaryKeySelective(FlowerTb record) {
        return flowerTbMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FlowerTb record) {
        return flowerTbMapper.updateByPrimaryKey(record);
    }

    @Override
    public int deleteAll(Integer[] ids) {
        return flowerTbMapper.deleteAll(ids);
    }

    @Override
    public List<FlowerTb> findAll(Integer fId) {
        return flowerTbMapper.findAll(fId);
    }

    @Override
    public int delete(Integer fId) {
        return flowerTbMapper.delete(fId);
    }

    @Override
    public int update(Integer fId) {
        return flowerTbMapper.update(fId);
    }

    @Override
    public int add(Integer fId) {
        return flowerTbMapper.add(fId);
    }
}
